﻿//  Created by Mathew Purchase.
//  Copyright (c) 2014 Mathew Purchase. All rights reserved.

using UnityEngine;
using System.Collections;

public class Item : MonoBehaviour 
{

	//---------------------------------------------------------------------------------------------
	// Properties
	public string Name;
	public int Value;
	public int Weight;
	public int Quantity;
	public int ID;

	public bool isConsumable;
	public bool isWater;
	public bool isFood;
	
	//---------------------------------------------------------------------------------------------
	// Members
	public Character m_playerMain;
	
	//---------------------------------------------------------------------------------------------
	// Events and Delegates
	
	
	//---------------------------------------------------------------------------------------------
	// Init
	void OnEnable()
	{
		m_playerMain = GameObject.Find("PlayerCharacter").GetComponent<Character>();
	
	}
	
	//---------------------------------------------------------------------------------------------
	// Core Functions
	
	public void eatFood()
	{
		m_playerMain.hunger ++;
	}
	
	//---------------------------------------------------------------------------------------------
	public void drinkWater()
	{
		m_playerMain.thirst ++;
	}

	
}
